//
//  UserConfigManager.swift
//  Kosspot
//
//  Created by 李鑫 on 2025/7/7.
//


import Foundation

class UserConfigManager {
    static let shared = UserConfigManager()
    private let defaults = UserDefaults.standard
    
    var userId: String {
        get { defaults.string(forKey: "userId") ?? "" }
        set { defaults.set(newValue, forKey: "userId") }
    }
    
    var lastLoginDate: Date? {
        get { defaults.object(forKey: "lastLogin") as? Date }
        set { defaults.set(newValue, forKey: "lastLogin") }
    }
    
    func removeUserId() {
        defaults.removeObject(forKey: "userId")
    }
    
    
}

